package net.mysoft.budgetsoft.system.domain.comparator;

import java.util.Comparator;

import net.mysoft.budgetsoft.system.domain.TMdinfo;

/**
 * 菜单排序
 * 
 * @author dagong
 * 
 */
public class MdinfoComparator implements Comparator<TMdinfo> {

	@Override
	public int compare(TMdinfo o1, TMdinfo o2) {
		int i1 = o1.getShunXu() != null ? o1.getShunXu().intValue() : -1;
		int i2 = o2.getShunXu() != null ? o2.getShunXu().intValue() : -1;
		return i1 - i2;
	}

}
